/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package co.srm.manejadores;

import co.srm.dao.JPAGenericDAO;
import co.srm.entidades.Rol;
import java.util.List;

/**
 *
 * @author TilZon
 */
public class ManejadorRol {
    private JPAGenericDAO<Rol> daoRol;

    public ManejadorRol() {
        this.daoRol=new JPAGenericDAO<Rol>(Rol.class);
    }

    public List<Rol> todosLosRoles()
    {
      List<Rol> roles=daoRol.findAll();
      if(roles!=null)
      return roles;
      else
      return null;
    }



}
